package com.woniuxy.controller;

import com.woniuxy.entity.dto.LogDTO;
import com.woniuxy.service.LogService;
import com.woniuxy.util.PageData;
import com.woniuxy.util.ResponseData;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @program: tsm
 * @description:
 * @create: 2024-10-23 17:36
 **/
@RestController
@RequestMapping("/log")
public class LogController {
    @Resource
    private LogService logService;

    @RequestMapping("/queryLog")
    public ResponseData queryLog(@RequestBody PageData<LogDTO> pageData) {
        return logService.queryLog(pageData);
    }
}
